# @Version : 1.0
# @Author  : wxz
# @File    : user_ext_info_model.py
# @Time    : 2025/6/2 14:26
# @Describe: 描述...

from datetime import datetime

from sqlmodel import Field

from database.mysql.base_sql_model import BaseSQLModel

class UserExtInfo(BaseSQLModel, table=True):

    __tablename__ = 'user_ext_info'

    user_id: str = Field(description="用户ID", max_length=64)

    is_vip: int = Field(description="是否vip:0-不是，1-是", max_length=1, default=0)

    last_login_time: datetime = Field(description="最后登录时间", default_factory=datetime.now)
